package com.woniuxy.table.client;

import com.woniuxy.table.client.result.DinnerTableTypeClientDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

import java.util.List;


@FeignClient(contextId = "tableTypeQueryClient",name="table")
public interface TableTypeQueryClient {
    @GetMapping("/getTableType")
    public Result<DinnerTableTypeClientDto> getTableType(@RequestParam("storeId")Integer storeId, @RequestParam("tableTypeId")Integer tableTypeId);

    @GetMapping("/getAllTableType")
    public Result<List<DinnerTableTypeClientDto>> getAllTableType(@RequestParam("storeId")Integer storeId);
}
